package com.cool.alibaba.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ProduceController {

    @Value("${server.port}")
    String port;

    @GetMapping(value = "/produce/sayHellow")
    public String sayHellow() {
        return "Hellow!,I am from " + port;
    }


    @GetMapping(value = "/sentinel/fegin")
    public String sentinelFegin() {
        int a = 1/0;
        return "Hellow!,I am from sentinelFegin";
    }
}
